package com.online.onlineshop.vo;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author zihao.wang1
 * @date 2022/3/10
 */
@Data
public class OrderVO {

    private Integer oid;

    private String recvName;

    private String createdTime;

    private String image;

    private String title;

    private Integer price;

    private Integer num;

    private Integer pid;

    //商户id
    private Integer uid;

    public void setCreatedTime(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss.S");
        this.createdTime = sdf.format(date);
    }

}
